package spider.pojo;

import java.util.ArrayList;
import java.util.List;

public class StreamingData {
	
	/**
	 * 实时数据：{
	"tid"	:	//租户ID
	"did"	:	//设备ID
	"ts"	:   测点时间戳
	"data"	:[
		{
		"k"		:	metric1
		"v"   	:	value1
		"ts"	:   测点时间戳(可能为空)
		"dn"	:   测点DN
		},
		{
		"k"		:	metric2
		"v"   	:	value2
		"ts"	:   测点时间戳(可能为空)
		"dn"	:   测点DN
		}
	]
}
	 */
	private long tid;
	private long did;
	private long ts;
	private List<StreamingMetricData> data = new ArrayList<StreamingMetricData>();
	public long getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	
	
	
	public long getDid() {
		return did;
	}
	public void setDid(long did) {
		this.did = did;
	}
	public void setTid(long tid) {
		this.tid = tid;
	}
	public long getTs() {
		return ts;
	}
	public void setTs(long ts) {
		this.ts = ts;
	}
	public List<StreamingMetricData> getData() {
		return data;
	}
	public void setData(List<StreamingMetricData> data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "StreamingData [tid=" + tid + ", did=" + did + ", ts=" + ts + ", data=" + data + "]";
	}
	
	
}
